<template>
	<div>
		<zbTable ref="tableRef" :api-fun="get_list" from="alter_goods_log" @action="action" @popaction="popaction">
		</zbTable>
		<!-- 详情弹窗 -->
		<detail v-if="goods_code" v-model:visible="showDetail" :goods_code="goods_code" />
	</div>
</template>

<script setup>
	import {ref,onMounted} from 'vue';
	import {message,Modal} from 'ant-design-vue';
	import {actionFn} from '@/utils/action.js';
	import {daochuFn} from '@/utils/daochu.js';
	import {PlusOutlined,UploadOutlined,ClearOutlined} from '@ant-design/icons-vue';
	/* import zbTable from '@/components/zbTable/jewelryIndex.vue'; */
	import zbTable from './components/zbTable.vue';
	import detail from '@/components/jewelry/goodsDetail.vue';
	import {get_list} from '@/api/jewelry/receipts_alter_goods_log';

	// 获取子组件
	const tableRef = ref(null);
	const showDetail = ref(false);
	const goods_code = ref(null);

	const popaction = (data) => {
		goods_code.value = data.goods_code;
		showDetail.value = true;
	}
	/* 打开编辑弹窗 */
	const action = (data) => {

	};
</script>